﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="AdministratorManager.aspx.cs" 
Inherits="AdministratorManager" Title="Administrator" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div id="toolbar_box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">
                        <div id="toolbar" class="toolbar">
                            <table class="toolbar">
                                <tr>
                                    <td id="toolbar_delete" class="button">
                                        
                                    </td>
                                    <%--<td id="toolbar_update" class="button"><a href="#" class="toolbar"><span class="icon-32-edit"></span>Sửa</a></td>--%>                                    
                                    <td id="toolbar_help" class="button"><a href="#" class="toolbar"><span class="icon-32-help"></span>Trợ giúp</a></td>
                                </tr>
                            </table>
                        </div>
                        <div class="header permission">
                            Quản lý người quản trị
                        </div>
                        <div class="clr"></div>
                    </div>
                    
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
    </div><!--End toolbar_box--------------------------------------------------->

    <div id="element-box">
                    <div class="t">
                        <div class="t">
                            <div class="t"></div>
                        </div>
                    </div>
                    
                    <div class="m">                                                
                        <fieldset style="width:500px">
                            <legend>Người quản trị nội dung</legend>
                            <table class="adminlist">
                            <thead>
                                <tr>
                                    <th class="title" width="10%">STT</th>                                    
                                    <th class="title" width="50%">Tên truy cập</th>                                                                                                                                                
                                    <th class="title" width="20%">Công bố</th>
                                    <th class="title" width="20%">Lệnh</th>
                                </tr>
                            </thead>
                            <tbody>
                                
                                <asp:Repeater runat="server" ID="AdministratorRepeater">
                                    <ItemTemplate>
                                        <tr class="row0">
                                            <td align="center"><%#Container.ItemIndex + 1%></td>                                            
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "USERNAME")%>
                                            </td>                                                                                                                                    
                                            <td align="center">                                                
                                                <asp:Image runat="server" ID="imgViewIsPublic" ImageUrl="~/App_Themes/Images/menu/icon-16-checkin.png" Visible='<%#(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/>
                                                <asp:Image runat="server" ID="imgViewIsBlock" ImageUrl="~/App_Themes/Images/menu/icon-16-block-status.png" Visible='<%#!(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/>
                                            </td>
                                            <td align="center">
                                                <asp:LinkButton runat="server" ID="lbtUpdate" Text="Sửa"></asp:LinkButton>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                    <AlternatingItemTemplate>
                                        <tr class="row1">
                                            <td align="center"><%#Container.ItemIndex + 1%></td>                                            
                                            <td>
                                                <%#DataBinder.Eval(Container.DataItem, "USERNAME")%>
                                            </td>                                                                                                                                    
                                            <td align="center">                                                
                                                <asp:Image runat="server" ID="imgViewIsPublic" ImageUrl="~/App_Themes/Images/menu/icon-16-checkin.png" Visible='<%#(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/>
                                                <asp:Image runat="server" ID="imgViewIsBlock" ImageUrl="~/App_Themes/Images/menu/icon-16-block-status.png" Visible='<%#!(bool)DataBinder.Eval(Container.DataItem, "RECORD_STATUS")%>'/>
                                            </td>
                                            <td align="center">
                                                <asp:LinkButton runat="server" ID="lbtUpdate" Text="Sửa"></asp:LinkButton>
                                            </td>                                                                                        
                                        </tr>
                                    </AlternatingItemTemplate>
                                    <FooterTemplate>
                                    <tr>
                                        <td colspan="4" align="right" style="padding-right:32px;">
                                            <asp:LinkButton runat="server" ID="lbtAddNewAdministrator" Text="Thêm"></asp:LinkButton>
                                        </td>
                                    </tr>
                                        
                                    </FooterTemplate>                                    
                                </asp:Repeater>                                
                            </tbody>                                                        
                        </table>
                        </fieldset>
                        
                        
                        <fieldset class="adminlist" style="width:300px;">
                                <legend>Thêm người quản trị</legend>
                                <table class="admintable" width="100%">
                                    <tbody>                                                                                
                                        <tr>
                                            <td class="key">Tên truy cập :</td>
                                            <td>
                                                <asp:TextBox runat="server" ID="txtUsername" Width="180px"></asp:TextBox>
                                                <asp:RequiredFieldValidator runat="server" ID="vlUsername" Text="*" ControlToValidate="txtUsername" ValidationGroup="CategoryInfo"
                                                Display="Dynamic"></asp:RequiredFieldValidator>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="key">Mật khẩu :</td>
                                            <td>                                                
                                                <asp:TextBox runat="server" ID="txtPassword" TextMode="Password" Width="180px"></asp:TextBox>
                                            </td>
                                        </tr>                       
                                        <tr>
                                            <td class="key">Xác nhận :</td>
                                            <td>                                                
                                                <asp:TextBox runat="server" ID="txtConfirm" TextMode="Password" Width="180px"></asp:TextBox>
                                            </td>
                                        </tr>                                                                                                                                                                                                                         
                                        <tr>
                                            <td class="key">Tình trạng :</td>
                                            <td>                                                
                                                <asp:RadioButtonList runat="server" ID="rdlRecordStatus" RepeatDirection="Horizontal">
                                                </asp:RadioButtonList>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td align="right" colspan="2">
                                                <asp:Button runat="server" ID="btOk" Text="Chấp nhận"/>
                                                <asp:Button runat="server" ID="btCancel" Text="Bỏ qua"/>
                                            </td>
                                        </tr>
                                        
                                    </tbody>
                                </table>
                            </fieldset>
                        
                    </div>
                    
                    <div class="b">
                        <div class="b">
                            <div class="b"></div>
                        </div>
                    </div>
                </div><!--End element-box--------------------------------------------------->

</asp:Content>

